package com.wuli.auth.mapper;

import com.wuli.auth.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User GetUserByPhone(String phone);

    void Update(User user);

    void Add(User user);

    void UpdateToken(User user);

    void UpdateUserRole(@Param("id") Integer id, @Param("roleId") Integer roleId);
}
